Skip to content

Add further new unit tests to cover more cases#25

Merged
cmainas merged 4 commits intomainfrom
new_unit_tests
Jul 30, 2025
Merged

Add further new unit tests to cover more cases#25
cmainas merged 4 commits intomainfrom
new_unit_tests

Conversation

@cmainas
Copy link
Collaborator

@cmainas cmainas commented Jul 30, 2025

Add further unit tests to cover more cases when validating and parsing files, but also on creating a rootfs for Unikraft and generic frameworks.

cmainas added 4 commits July 2, 2025 13:23
Add more unit tests for the generic framework to also cover the failing
cases when creating a rootfs. In particular, add tests for the following
cases:
- The include field is not properly formatted
- The rootfs type is unsupported

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Add more unit tests for pasing files and test cases where the input is
invalid. In particular, add the following tests:
- Invalid Containerfile, which is empty and can not be parsed
- Invalid file, which contains a single line

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Add one more unit test to verify that the creation of a rootfs with an
invalid format in the include files will fail.

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Add further unit tests for checking the unsupported features that a
rootfs field implies in a bunnyfile.
In particular add the following tests:
- Non-empty path with raw rootfs type, which means that we specify both
  a file to use as rootfs but also set the type as raw, which will
  require to unpack the file and transform it to raw. This is not
  supported yet.
- The from field equals "local" and the rootfs type is raw, which means
  that we have to use something local as raw, which is similar to the
  previous case (use a file with raw rootfs type). Again not supported
  yet.
- The from field is not scratch and we the include field is non-empty,
  which means that we want to append files in an existing rootds. This
  is not supported yet.

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
@cmainas cmainas merged commit 1c5019e into main Jul 30, 2025
7 checks passed
@cmainas cmainas deleted the new_unit_tests branch July 30, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant